<template>
	<view class="content">
        <uni-password :show="true" digits="6" @confirm="confirm">
			请为账号{{calcPhone}}设置6位支付密码
		</uni-password>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				nUserPhone: ''
			}
		},
		computed: {
		    calcPhone() {
		        return this.nUserPhone.slice(0,3)+'****'+this.nUserPhone.slice(7);
		    }
		},
		onLoad({mobile}) {
			this.nUserPhone = mobile
		},
		methods: {
			confirm(e){
				uni.navigateTo({
					url:'/pages/user/settings/set_password_c?pwd=' + e
				})
			}
		}
	}
</script>

<style>
	.content {
		text-align: center;
	}
</style>
